package com.kfm.base.io.c;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

public class Demo03 {

    public static void main(String[] args) {
        try(FileInputStream fis = new FileInputStream("D:\\io\\Reader-gbk.txt");
            InputStreamReader isr = new InputStreamReader(fis, "GBK");){

            System.out.println((char)isr.read());

        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
